import React from 'react';

export default class Button extends React.Component {
    render() {
        const { mStyle, children, onClick = () => { }, style, className = "" } = this.props;
        const _mStyle = mStyle ? `btn-${mStyle}` : "";
        return (
            <button className={`btn ${_mStyle} ${className}`} onClick={onClick} style={style}>{children}</button>
        )
    }
}